package com.ssm.demo2.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ssm.demo2.mapper.UserMapper;
import com.ssm.demo2.po.User;
import com.ssm.demo2.service.UserService;

@Service
public class UserServiceImpl implements UserService{
	@Autowired
	UserMapper userMapper; //spring框架配置了注解，自动注入
	
	@Override
	public List<User> findUser(String name) throws Exception {
		// TODO Auto-generated method stub
		List<User> users=userMapper.findUserList(name);
		return users;
	}

}
